package com.sense.kukoo.biz_me.adapter

import com.sense.kukoo.biz_me.adapter.provider.FollowingsItemProvider
import com.sense.kukoo.common.repo.biz.FollowingsListItemBean
import com.sense.kukoo.common.repo.http.bean.UserSearchBean
import com.sense.kukoo.common.wiget.adapter.MultiItemAdapter

class FollowingsListAdapter(

    val data:List<FollowingsListItemBean>,
    val listener:FollowingsEventListener,

    ): MultiItemAdapter<FollowingsListItemBean>(data) {

    init {
        addItemProvider(FollowingsItemProvider(listener))
    }

    override fun getItemType(data: MutableList<FollowingsListItemBean>, position: Int): Int {
        return data.get(position).type
    }

    interface FollowingsEventListener{
        fun onBtnFollowClick(data: UserSearchBean)
        fun onBtnChannelClick(data: UserSearchBean)
    }
}